package com.chexiehui.jc.entity;

import com.chexiehui.jc.widget.indexbar.bean.BaseIndexPinyinBean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 论坛实体
 */
public class ForumInfo extends BaseIndexPinyinBean implements Serializable {
    private String Id;// (string, optional): 论坛id ,
    private String Name;// (string, optional): 论坛名字 ,
    private String Introduction;// (string, optional): 论坛介绍 ,
    private int Day;// (integer, optional): 当前用户关注天数 ,
    private String FollowCount;// (string, optional): 论坛关注人数,一万以下直接返回如3456，一万以上返回如2w ,
    private List<String> PhotoList;// (Array[string], optional): 用户头像，最多三个 ,
    private boolean isCollect;// (boolean, optional): 是否收藏

    private String Type;// (string, optional): 论坛类型[0.车系|1.主题] ,
    private String Icon;// (string, optional): 图标 ,
    private String Followcount;// (string, optional): 关注人数 ,
    private String PostCount;// (string, optional): 发帖人数 ,
    private String SeriesId;// (string, optional): 关联车系Id ,
    private String SeriesName;// (string, optional): 关联车系名称 ,
    private String Spell;// (string, optional): 首字母 ,
    private String CreateTime;// (string, optional): 浏览时间 ,
    private boolean IsLikeForum;// (boolean, optional): 是否加入了论坛

    private int Status;
    private String Opinion;//申请不通过原因

    public int getStatus() {
        return Status;
    }

    public String getStatusStr() {
        //0 审核中 1 审核通过 2 审核驳回，不传所有
        return Status == 0 ? "审核中" : Status == 1 ? "审核通过" :
                Status == 2 ? "审核驳回" : "" ;
    }

    public String getOpinion() {
        return Opinion == null ? "" : Opinion;
    }

    public void setOpinion(String Opinion) {
        this.Opinion = Opinion;
    }

    public void setStatus(int status) {
        this.Status = status;
    }

    public String getType() {
        return Type == null ? "0" : Type;
    }

    public String getTypeStr() {
        return getType().equals("0") ? "车系论坛" : getType().equals("1") ? "主题论坛" : getType().equals("2") ? "地区论坛" : "";
    }

    public void setType(String type) {
        Type = type;
    }

    public String getIcon() {
        return Icon == null ? "" : Icon;
    }

    public void setIcon(String icon) {
        Icon = icon;
    }

    public String getFollowcount() {
        return Followcount == null ? "" : Followcount;
    }

    public void setFollowcount(String followcount) {
        Followcount = followcount;
    }

    public String getPostCount() {
        return PostCount == null ? "" : PostCount;
    }

    public void setPostCount(String postCount) {
        PostCount = postCount;
    }

    public String getSeriesId() {
        return SeriesId == null ? "" : SeriesId;
    }

    public void setSeriesId(String seriesId) {
        SeriesId = seriesId;
    }

    public String getSeriesName() {
        return SeriesName == null ? "" : SeriesName;
    }

    public void setSeriesName(String seriesName) {
        SeriesName = seriesName;
    }

    public String getSpell() {
        return Spell == null ? "" : Spell;
    }

    public void setSpell(String spell) {
        Spell = spell;
    }

    public String getCreateTime() {
        return CreateTime == null ? "" : CreateTime;
    }

    public void setCreateTime(String createTime) {
        CreateTime = createTime;
    }

    public boolean isLikeForum() {
        return IsLikeForum;
    }

    public void setLikeForum(boolean likeForum) {
        IsLikeForum = likeForum;
    }

    public String getId() {
        return Id == null ? "" : Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getName() {
        return Name == null ? "" : Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getFollowCount() {
        return FollowCount == null ? "" : FollowCount;
    }

    public void setFollowCount(String followCount) {
        FollowCount = followCount;
    }

    public String getIntroduction() {
        return Introduction == null ? "" : Introduction;
    }

    public void setIntroduction(String introduction) {
        Introduction = introduction;
    }

    public int getDay() {
        return Day;
    }

    public void setDay(int day) {
        Day = day;
    }

    public List<String> getPhotoList() {
        return PhotoList == null ? PhotoList = new ArrayList<>() : PhotoList;
    }

    public void setPhotoList(List<String> photoList) {
        PhotoList = photoList;
    }

    public boolean isCollect() {
        return isCollect;
    }

    public void setCollect(boolean collect) {
        isCollect = collect;
    }

    @Override
    public String getTarget() {
        return getName();
    }
}
